projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86c32c2
)
Fix and tighten an assertion
author
Federico Mena Quintero
<federico@novell.com>
Thu, 27 Aug 2009 00:10:51 +0000
(19:10 -0500)
committer
Benjamin Otte
<otte@gnome.org>
Thu, 15 Oct 2009 20:06:14 +0000
(22:06 +0200)
Signed-off-by: Federico Mena Quintero <federico@novell.com>
gtk/gtkfilesystemmodel.c
patch
|
blob
|
history
diff --git
a/gtk/gtkfilesystemmodel.c
b/gtk/gtkfilesystemmodel.c
index a8755f67933454ae776f75aeca4f6e095383cdba..ca967f9c7cfcba3095113cb216d0e4199bbe0f17 100644
(file)
--- a/
gtk/gtkfilesystemmodel.c
+++ b/
gtk/gtkfilesystemmodel.c
@@
-1122,8
+1122,7
@@
gtk_file_system_model_set_directory (GtkFileSystemModel *model,
GFile * dir,
const gchar * attributes)
{
- g_return_if_fail (GTK_IS_FILE_SYSTEM_MODEL (model));
- g_return_if_fail (dir == NULL || G_IS_FILE (dir));
+ g_assert (G_IS_FILE (dir));
model->dir = g_object_ref (dir);
model->attributes = g_strdup (attributes);